import {
  basicsInfo,
  updateShopInfo,
  getQrcode,
  updateAlipayInfo,
  saveSignInfo,
  saveShopRentRate,
  merchantList,
  merchantInfo,
  updateStatus,
  updateMerchant,
  addSettle
} from '@/services/Merchant'

export default () => {
  const GetBasicsInfo = (params: any) => {
    return basicsInfo(params)
  }

  const UpdateShopInfo = (data: any) => {
    return updateShopInfo(data)
  }

  const GetQrcode = (params: any) => {
    return getQrcode(params)
  }

  const UpdateAlipayInfo = (data: any) => {
    return updateAlipayInfo(data)
  }

  const SaveSignInfo = (data: any) => {
    return saveSignInfo(data)
  }

  const SaveShopRentRate = (data: any) => {
    return saveShopRentRate(data)
  }

  const MerchantList = (params: any) => {
    return merchantList(params)
  }

  const MerchantInfo = (params: any) => {
    return merchantInfo(params)
  }

  const UpdateStatus = (params: any) => {
    return updateStatus(params)
  }

  const UpdateMerchant = (params: any) => {
    return updateMerchant(params)
  }

  const AddSettle = (params: any) => {
    return addSettle(params)
  }

  return {
    GetBasicsInfo,
    UpdateShopInfo,
    GetQrcode,
    UpdateAlipayInfo,
    SaveSignInfo,
    SaveShopRentRate,
    MerchantList,
    MerchantInfo,
    UpdateStatus,
    UpdateMerchant,
    AddSettle,
  }
}
